package com.jie.eduservice.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author XieZhiJie
 * @create 2020-10-01 23:02
 */
@MapperScan("com.jie.eduservice.mapper")
@Configuration
public class MybatisConfig {

    // 配置mybatis plus分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

    // 配置逻辑删除插件
    // 逻辑删除的插件(3.3以后不需要添加配置类了, 直接在配置文件中配置全局逻辑删除字段值即可)

}
